#include <iostream>
#include <algorithm>
#include <vector>
#include <array>
using namespace std;
class MyArray
{
    public:
        int * ps;
        int * pe;
        int len = 0;
    MyArray()
    {
        ps = NULL;
        pe = NULL;   
        len = 0;
    }
    MyArray(int a[])
    {
        cout<<"constructor with array"<<endl;
        int l = sizeof(a)/4;
        ps = new int[l+1];
        pe = ps+l;
    }
};

int main()
{
    int a[] ={1,2,3};
    int b[] ={4,5,6};
    swap(a,b);
    //MyArray ma = {1,2,3};    
    vector<int> s(3,1);
    s.insert(s.begin()+2,5);
    for(auto i:s)
        cout<<i;

    array<int,10> as = {1,2,3};
    for(auto i:as)
        cout<<i;


}

